<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>档案查询</title>
    <%@ include file="/WEB-INF/pages/css_template.jsp" %>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed"
                    data-toggle="collapse" data-target="#navbar" aria-expanded="false"
                    aria-controls="navbar">
                <span class="sr-only">学生管理系统</span> <span class="icon-bar"></span>
                <span class="icon-bar"></span> <span class="icon-bar"></span>
            </button>
            <button type="button" class="navbar-toggle collapsed"
                    data-toggle="collapse" data-target="#navbar2" aria-expanded="false"
                    aria-controls="navbar" style="float: left;">
                <span class="sr-only">切换导航</span> <span class="icon-bar"></span> <span
                    class="icon-bar"></span> <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="<%=path%>/mainUrl">学生管理系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <!-- 导航条菜单 -->
            <%@ include file="/WEB-INF/pages/header_nav_template.jsp" %>
        </div>
    </div>
</nav>
<div class="container-fluid">
    <div class="row">
        <div id="navbar2" class="col-sm-3 col-md-2 sidebar">
            <!-- 侧边栏 -->
            <jsp:include page="/WEB-INF/pages/side_nav_template.jsp">
                <jsp:param value="active" name="sInfo"/>
            </jsp:include>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h1 class="page-header">${student.getDescription() }</h1>
            <form action="<%=path%>/user/student/updateInfo">
                <div>
                    <div class="panel panel-default">
                        <div class="panel-heading">个性签名</div>
                        <div class="panel-body">
                            <textarea class="form-control" name="description" rows="3">${student.getDescription()}</textarea>
                        </div>
                        <ul class="list-group">
                            <li class="list-group-item">
                                <span class="label label-primary">学 号</span> ${student.getStudentNo() }
                            </li>
                            <li class="list-group-item">
                                <span class="label label-primary">姓 名</span> ${student.getStudentName() }
                            </li>
                            <li class="list-group-item">
                                <span class="label label-primary">年 级</span> ${student.getGradeNo() }
                            </li>
                            <li class="list-group-item">
                                <span class="label label-primary">学 院</span> ${student.getCollegeNo() }
                            </li>
                            <li class="list-group-item">
                                <span class="label label-primary">专 业</span> ${student.getProfessionNo() }
                            </li>
                            <li class="list-group-item">
                                <span class="label label-primary">班 级</span> ${student.getClassNo() }
                            </li>
                            <li class="list-group-item">
                                <span class="label label-primary">身份证</span> ${student.getIdCard() }
                            </li>
                            <li class="list-group-item">
                                <span class="label label-primary">性别</span>
                                <c:choose>
                                    <c:when test="${student.getGender() == 1}">
                                        男
                                    </c:when>
                                    <c:otherwise>
                                        女
                                    </c:otherwise>
                                </c:choose>
                            </li>
                            <li class="list-group-item">
                                <span class="label label-primary">年 龄</span> ${student.age }
                            </li>
                            <li class="list-group-item">
                                <span class="label label-primary">入学年份</span> ${student.year }
                            </li>
                        </ul>
                    </div>
                    <div>
                        <button class="bth btn-primary" style="float: right;" type="submit">更新</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="./js/jquery-3.5.1.js"></script>
<script src="./js/bootstrap.js"></script>
</body>
</html>